//
//  StatusCell.m
//  XIB自动布局
//
//  Created by 周成龙 on 16/11/3.
//  Copyright © 2016年 ZCL. All rights reserved.
//

#import "StatusCell.h"

#import <UIImageView+WebCache.h>

@interface StatusCell ()

@property (weak, nonatomic) IBOutlet UIImageView *headerImageView;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *sourceLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;


@end

@implementation StatusCell

- (void)setModel:(StatusModel *)model {
    
    NSLog(@"%@", model.user.profile_image_url);
    
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:model.user.profile_image_url] placeholderImage:nil];
    self.nameLabel.text = model.user.name;
    self.sourceLabel.text = model.source;
    self.contentLabel.text = model.text;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
